//引入axios实例对象
import { instance } from "../util/request.js";

//注册
export const postRegisterReq = (data) => {
	return instance({
		//请求方式
		method: "post",
		//请求地址
		url: "/api/user/register",
		// 请求数据
		data,
	});
};

//登录
export const postLoginReq = (data) => {
	return instance({
		method: "post",
		url: "/api/user/login",
		data,
	});
};
//获取客户信息
export const postinfoReq = () => {
	return instance({
		method: "get",
		url: "/api/user/info",
	});
};
//打卡
export const postclockInReq = (data) => {
	return instance({
		//请求方式
		method: "post",
		//请求地址
		url: "/api/user/clockIn",
		// 请求数据
		data,
	});
};
//获取打卡信息/api/user/clockInInfo
export const postclockInInfoReq = () => {
	return instance({
		method: "get",
		url: "/api/user/clockInInfo",
	});
};
//获取荣誉徽章
